fixed bug now passed ex2 was caused by permissions on pgdir level