changed permissions, add debug output