added ignore if *.pid and some extra logging