If you strip out the getters and put the mk_resource stuff back in before you do the def x=, it'll all magically work