fix various bugs and apply scaling list