refactored block config