read me and check for error