more logs and fixes
changed parameter names