context functions; step towards making Ctx an interface