Inproved the error control, and dependecies compilation