scripts moved to top