avoid pointer waiting and lamp script