add ftp option
add some mad config get functions
fix type
fixup syntax
better FTP errors