added API stuff
moved respect config outside the document