scripts and fixes