rewrote
added a command for autopost