extract out index and hello handlers