input and output for commandline only