updated inputParser for PTB functions