add option to get last modified date instead of creation date