moved custom script to separate file