updated callbacks to match node conventions.