finally got rig of error causing entry, probably I didn't need it in the first place
modifiled deploy script