optionally call a callback on load done