functions for loading features and getting features