license script, inspired by defunkt's