scripts refactored

i just refactored arch and chgrp scripts