Remove local hooks
Change prepare implementation