fixed inconsistency with argv and external function calls