inheriting the main process env and just adding the sent env variables; also added a console log for the stdout