moved block decloration, added config for block