fixed local refs and added name: prefix to src