changed the way the contxt is obtained

Signed-off-by: Exikle <dixondcunha@hotmail.com>