adding build method and resourcePrefix option