flags & errors