add clock selection mechanism