working on filesystem adapter and a memory bug that occurs in cycles