first working version with status up and down only