implement robot init method