added support for file expiry