code style fixes, added correct FTP check (was mock for the whole project)