working on breaking up input
working on breaking up input
added flag parsing