added author and attachment models to posts