fixed some issues. add inline mode