code refactored a bit
fix
configuration printed