LCN_MAIN pack/unpack + patching