added basic capture programmed in python