license and run method