memory management done and interfaces partly