improved ko app, refactored some stuff