added getopts in fxn...not working yet