make parse return None on failure