now depends on custom version of when