add eval debug option
fix popup bugs and copy changes