basic arg parsing implemented