refactor contributions and fix HEADS-project/heads_ide#31