working on removing C dependencies