more bug fixes to elmsln package