kymograph models and some refactoring