moved functiosn to thalamic modules