improved compound loading