new features for future GL integration, refactoring
segfault on start fixed, new rotation logic