convert logging to logpkg()
adjust eval logic
unlink doesnt need eval
refactor logging code
reduce warnings, minor