fixed minor bugs and added option center_only