added resource interface UNTESTED
bug fixes, modules adding works, so does resources, but doesn't update dynamically