fixed review issue
implemented basic action handling and tests
implemented correct handling of account type conversion