ticket:2 loacals() replaced