initial revision of minwg env helper and makefile