fix script, freelayout, linearlayout and morphcreator to work with new architecture