bug fixes in corecmd