reorganised some of the core scripts so the api is a bit more sensible
adding environment detection, pretty output