added option to set url scheme
refactored Entry::setDefaults