moved code via c&p since includes do not work for scripts that run before scram