added protection against double loading