save and load fully functioanl besides weird runtime bug