correct import ressources function