added function to load custom points and accept json