add: quota options
refactor logging functions