prevent plugin choking if request comes from console