simplified URL params handling, added validation for them