chinook: fixed AHK script logic bug + misc