Export some useful APIs & fix slash problem