route bugfixes and part of delphimethod