minor update

print error message when memory mapping fails