sick error checking