ghosts refactoring
framerate fix