Copy from forge sdk