moved interrupt handling definitions to a separated file