add sources and ext library