check if stopligt is green before sleepin
assign partitiondb to envelope