added some switch flipping functionality
fine tuned axes
added milis offset