add resource to build and to main controller