fix compile errors
add new relic monitoring