Add scheme input/output
Fix scheme resources