now the textual interface works :) some cleanup is still needed