got rid of ref counting
removed ref counting headers