create and destroy sources