braindump of functionality, tests needed