added conditional vsp if the file is not already open