added new functions to parse GET params