fixing relative paths
adding direct access protection