docs will always be returned as an array