messages config, and begining of pagination