Backopt

some backend optimization done in Mar, 2014. Not merged so far but it is the actual running version on my server.