add DEBUG environment flag
add logger
refactored ASK_PASS_FILE handling