remove ratio stuff
proper logging with log levels
fix raised errors