pdf export working, server crashing now though :(