moved findById to common initializer