magic relative numbering, courtesy of @rnowak