changed to get from environment