adapted push script