added player and flipping support