get get posts to not error, move client to provider