converting to proper loomlibs + console test app