fix compile
replace scary path resolving code with another one.
form serialization improvements