SDP: refactoring the code and reconstruction capabilities