beats-can template refactored