added some code to start reading url querys