remove obsolete libraries and functions