starting to borrow some praw code