reverted fe07c8c
added string conversion to getResource functions