stack and components initializer improved

Signed-off-by: Felix Gabel <felix.gabel@me.com>