added simple path check