print messages
make pdf export working