error checking
error log removal thing