use PW_MAX_MSG_SIZE in applications