fix system config uses double memory
refactor a bit
fix test/config/test_system_config.rb
a