removed abspath() which was hanging around