next generation posts-dates function, updated api map and fn