fixed various strange issues and incompatibilites with legacy code. Also added a bit to remove object functioning. Server isn't complying with remove request ATM