lot of fixes + local notifications