making listing run
fixed the logic of main as sysid isn't always required