change input and output messages directories