starting to map parsed flags to IO actions