added support for simple sample loading