addded command line stuff