group files in folders
use callback to ensure library initialisation is finished