change to id key and add manager to environment