reworked script, working.