renamed c++ Context to SimpleContext
updated policy functions to use BaseContext type