added api stuff to mod_bwg4