use module for mode clock to allow easier integration with gpu