added script path and hook