refactor and adds blog stuff