add posargs support