miscellaneous tweaks. close #298. related to issue #288