graphics and audio integration
check for environment when executing code in clock