fix bugs and workflow