check if resource is valid
add path as id to default filesystem (fs)