started schedule module; moved functions from gd to that module