syntax and flags corrections