added command line stuff and logger to slave