prettying some things up, also adding some basic error responses