Add namespace support to resources