added opt parse
not working yet