add reader part, replace old libraries