fix memory offset array
change main.c to use gnampf message