resolve undefined references