a first step towards automating this