command line args are a bit shady, would be nicer to handle them better and have flags for each instead of a fixed format.