use timeout in main module