memory and cleaning
added export