inserted ack polling and page write
removed the -Werror compilation option