add printing of pid in dev-mode
fixes bugs with multiprocessing and optoins
fixes caching bugs
fixes datetime error