added environment, one procedure to try to get that working