rewrite itemmanager