remove spaces
add notificationbadge
avoid moved permanently header
refresh current task
use a named semaphore for process safety