building: added ratio, some cleanup