got some idea of the algorithm for component lib fixing using sed
non-working safety commit