using dustin's server code