improved post generation