updated from SWE template repository

copied script from template repo