better pdf and some other things