application: adapt for interupts