moved input stuff into server