fixed router bug by a nasty hack. router itself needs redesigning

fixed a bug in the virtual machine