fix cookie setting
fix ks validation
fix php class loading
fix params necessary for loading ksu