efficiency updates, preliminary memory profiling