added some basic routing functionality