implementing execution context to give back an either