better resources manager
Merge pull request #3 from youennPennarun/master

better resources manager