implemented gadgetheader script