added serverside importing logic