moved results class into lib