a little refactoring, finished backend for chronicle form