return badrequest if could not call metapost