added post_action to accelerometer