downgrade Java from 8 to 7; use ExecutorService instead of Thread class