parse function exported directly