this is liuming's open-codes