need a better way to configure resource mapping