fix bug with flow visibility after refactoring. 
+ load parameters for KeyMapper
+ Cache custom blocks during loading