moved cutoff finding function to asynchronous namespace