clear workspace
fix interrupt handling