- moved loadshared() to the right point