added autoApi handler
more documentation