refactor and addition of dev scripts