creation librairy for functions independent of the GUI launch