bugfix in router and strict php fixes