using PathInfo instead ScriptName for current item