add support for custom pid + log file(s) -fix typo