merge with misc_coding