make $partial static to make sure that it is accessible across multiple instances