added private messages handling