trying to fix pathname problem