fixed minor bug in element interface; removed unused libs