properly set source filename