move all occurences of SERVER to conditional compilation + fix lua parser bug