updated the static path checking