handle bash args properly using arrays