remake lib