add handler for bad param