normalize scripts