main declaration does not work in frameworks

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