many imporvements, more stable working, new internal event system