changed script registration