added resource name instead of request.full_path
added sessions inherit