device.cpp is back! Turns out moving table in the header is a very baaaad idea... thanks valgrind :-D