move to portable library and removed uncompatible features