chore: refactor the server and the way pellet gets loaded