fix warnings in reference API