buffer access and typemap added