added some getters for context
fixed bug with register files