now using print env instead of direct echoing