updated csq script