changed call to Flow.getUser()