adding parameters to resourceMap for validation etc..