badges editable file. Needs some tidying up