knockout stage is working; just need some refactoring and it is ready