random small changes while trying to fix concurrency issues
add jnlp/jws security permissions. Ugly.