added checkCity function to syscmds and small changes to fmi module