simplify error logging+returning slightly