add methods declarations and accelerator count