add -static and -nostatic flags, amend mike's changes for route get