added digital out support