initial code to check ressources