add possibility to load_param directly
minor corrections