added deletion and transplants, improved separation of API from internals