resolving resource directory mess