added some (commented) code to try-out mapping of buffers.