add post expiry (code mostly written by Mario Vavti)