fix licenses and scripts