bug fixes, config for multipurposes