new version with trap parse pre-load