adding a docs mechanism