added ftp functionality and logging features. still not fully tested/stable