added esm logging