increasing stack spaces seemed to have helped, disabling recursion limit in feature adaptive code