error in custom scripts lib