added config and main