added more hooks to api