removed global Save/Load Entity functions as they were causing problems