added option to skip auto-compact