set framework path & clean up