fixing parsing short options