spawn command now use nearest spawn instead of default one.