rewrite for new enginge  wallbase.cc