added sysfs functionality