ignore comments without code
no private functions
add replace rules for rest calls