remove ensure_local method