fixed wrong "this" in parsedir()