refactor chgrp; removed defined block and require directives