now a functional server w/ url parsing