cleanup, changed @doc to @directions