added loader, segfault problem in release mode