bugfixing..
changed script registration