rough implementation of clone and load