moved context to helpers