added environment to scrooge api

added environment to scrooge api