adds missing done callback
reorder require statements