added start and max values in the getThreads method - otherwise it does not work with more than 500 threads