fix some more paramater and extract function related issues,  #8