lock bitmap stuff