adding support for creating resource