added second format, only library functionality included