split up reset()['path'] to make it compatible with older PHP versions