The invention can provide compounds, analogs of blebbistatin, effective and selective inhibitors of nonmuscle myosin II relative to cardiac myosin II. Compounds can be used in the method of treating adisease, disorder, or medical condition in a patient, comprising modulating myosin II ATPase, such as treatment of substance abuse relapse disorder, or of renal disease, cancer and metastasis, benignprostate hyperplasia, hemostasis or thrombosis, nerve injury including retinal damage, lung fibrosis, liver fibrosis, arthrofibrosis, wound healing, spinal cord injury, periodontitis, glaucoma and immune-related diseases including multiple sclerosis; or wherein the disease, disorder, or medical condition comprises addiction including abuse of or addiction to anything classified as a Substance-Related or Addictive Disorder in the Diagnostic and Statistical Manual of Mental Disorders (DSM), such as, but not limited to, cocaine, opioids, amphetamines, ethanol, cannabis/marijuana, nicotine, and activities including gambling Compounds are of general formula (I) with substituents as defined herein.