flags not being passed through