add calls to fatal; remove library