code refactoring
50btc support