added functions to retrieve repo/env ids