merged logical_cap.py to lcap.cgi