change the error thrown to pinpoint the place (was obscure) and a way to a possible solution
add status wrapper