moved interrupt logic to seperate file
updated version in setup