there must be a better way to handle the docs