improve loading custom-file