fixed event handling
basic shell functionality
event init in main