added support for castor config; updated examples to use castor mappings