How to get resources
To be reworked