adding support for creating resrouce