actually read interval from config file
add tests for interval option