fixed orientation and acceleration handling