move get_distributions function to utils
better in-line distributions getter
get packages history via socket