add all_preload config, fix addStyle bug, catch error with file path.