use NSPorxy in init function