fixing arg passing issue with extra vars