add file, thor and debug some code