remove logs and unused functions