moved scripts to enquescript in function file