fixed crashing related to bitmap parsing
implemented container pairing