resolve some references