move config

trim initialize/config
add validator
add validate flag