realized cstring comparison issue with regular string. switched to strcmp for flag handling