file WIP
error_code refactor