reverted fe07c8c
added string conversion to getResource functions
merged in change for loader functions from 1.0.x