added argv detection
looping function syntaxt