cleanup
added resource controller