added check for pipelight