fixed code review comments and added plugins index to the api