changes to file detection and svg elements