adding new script for item options
added failsafe