better support for pointer types and missing env vars