should it really echo ``error`` ? This seems weird to me