fixes in custom script