added config and periodic tasks