added support for more value types in getResource