modified scripts slightly, added listports
scripts now dynamic