improved arc optimization
fix for file drag and drop