split account related function to account.py