moved egosystem.cs