fix dumb static mistakes
Add getResourceName() accessor
Add deserialization
fix hard-coded port
Add logging