moving license writing to other module