deal with classpath of standalon mode in a more flexible way