improve common part
write licence
missing attribute