added firsttime/lasttime to api