refactoring, introduce a configuration object
prepare for appserver operating
add copy mechanism
use UTF-8 encoding