starting 0.7.0
add support for passing flags as object