restructure folders
add file chain + errors
update test cases