add shared helpers