adapt to troy's setup